package laschools.team1.Zelda;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;


public class ScreenScanner {
	
	static char[][] screen = new char[16][11];
	static String screenName;
	
	public static char[][] scanScreen(String screenName1) {
		//screenName = "laschools/team1/Zelda/" + screenName1 + ".txt";
		screenName = screenName1;
		Scanner scan = null;
		try {
			scan = new Scanner (new File(screenName));
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}

		for (int i = 0; i < 11; i++) {
			for (int j = 0; j < 16; j++) {
				
				screen[j][i] = scan.next().charAt(0);

			}
		}

		scan.close();
		return screen;
	}
}
